#ifndef ANIMATETRAYICON_H
#define ANIMATETRAYICON_H

#include <QSystemTrayIcon>
#include <QTimer>
#include <QVector>
#include <QIcon>
#include <QObject>


class AnimationObject : public QVector <QIcon>
{
public:

    AnimationObject();
    const QIcon & next();

private:
    int currentIndex;
};



class AnimateTrayIcon : public QObject
{
    Q_OBJECT

public:
    AnimateTrayIcon(QSystemTrayIcon *ticon, AnimationObject *anim_obj);


public slots:
    void animate();
    void start();
    void stop();

private:
    QSystemTrayIcon *tray;
    AnimationObject *animationIcon;
    QTimer timer;
};


#endif // ANIMATETRAYICON_H
